<?php

// +----------------------------------------------------------------------
// | ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2014~2017 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +----------------------------------------------------------------------
// | 官方网站: http://think.ctolog.com
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// +----------------------------------------------------------------------
// | github开源项目：https://github.com/zoujingli/ThinkAdmin
// +----------------------------------------------------------------------

namespace app\index\controller;

use think\Controller;
use think\facade\Request;

/**
 * 应用入口控制器
 * @author Anyon <zoujingli@qq.com>
 */
class Index extends Controller
{

    public function index()
    {
        $host = Request::server('HTTP_X_HOST');
        $host_array = [
            ['url'=>'eifankt.cn','record'=>'粤ICP备19002673号-1'],
            ['url'=>'billionos.cn','record'=>'粤ICP备19002673号-1'],
            ['url'=>'cottbom.cn','record'=>'粤ICP备19002673号-1'],
            ['url'=>'effecter.cn','record'=>'粤ICP备19002673号-1'],
            ['url'=>'boomke.cn','record'=>'粤ICP备19002673号-1'],
            ['url'=>'keerter.cn','record'=>'粤ICP备19002673号-1'],
            ['url'=>'iiffan.cn','record'=>'粤ICP备19002673号-1'],
            ['url'=>'shzhtech.cn','record'=>'粤ICP备19002673号-1'],
            ['url'=>'techcitys.cn','record'=>'粤ICP备19002673号-1'],
            ['url'=>'gloryffkt.cn','record'=>'粤ICP备19002673号-1'],
            ['url'=>'ieffect.cn','record'=>'粤ICP备19002673号-2'],
            ['url'=>'weeffect.cn','record'=>'粤ICP备19002673号-3'],
            ['url'=>'iecter.cn','record'=>'粤ICP备19002673号-4'],
            ['url'=>'iyfkt.cn','record'=>'粤ICP备19002673号-11'],
            ['url'=>'iicott.cn','record'=>'粤ICP备19002673号-7'],
            ['url'=>'ikente.cn','record'=>'粤ICP备19002673号-5'],
            ['url'=>'lvankete.cn','record'=>'粤ICP备19002673号-9'],
            ['url'=>'lvanect.cn','record'=>'粤ICP备19002673号-8'],
            ['url'=>'ilvanect.cn','record'=>'粤ICP备19002673号-10'],
            ['url'=>'lvankt.cn','record'=>'粤ICP备19002673号-6'],
        ];
        foreach($host_array as $vo){
            if(stripos($host,$vo['url']) !== false){
                $this->assign('vo',$vo);
            }
        }
        return $this->fetch();
    }
}
